﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GolfLeague.Models;
using GolfLeague.ViewModels;

namespace GolfLeague.EditModels
{
    public class ScoreCardEditModel
    {
        public IEnumerable<Hole> FrontHoles { get; set; }
        public IEnumerable<Hole> BackHoles { get; set; }
        public TeeBoxHoleDetails FrontHoleDetails { get; set; }
        public TeeBoxHoleDetails BackHoleDetails { get; set; }
        public Match Match { get; set; }
        public IEnumerable<MatchesHandicaps> PlayerMatches { get; set; }
    }

    public class MatchesHandicaps
    {
        public PlayerMatch PlayerMatch { get; set; }
        public PlayerMatch OpponentMatch { get; set; }
        public List<HandicapHoleStrokes> HandicapStrokes { get; set; }
        public int PlayerAHandicap { get; set; }
        public int PlayerBHandicap { get; set; }
    }
    
    public class HandicapHoleStrokes
    {
        public int PlayerMatchID { get; set; }
        public int PlayerID { get; set; }
        public int HoleNumber { get; set; }
        public int Strokes { get; set; }
    }

}